#include "Includes.h"
///////////////////////////////////////////////////////////////////////////////////////
void Section_Out_Of_Src_One_Key(int height,int rise_speed,int time, TTimers timer_x)
{
	Rise_Updown_AngleSor_TASK_FUN(height,rise_speed,50,time,timer_x,0);
	StartTask(Shake_Arm);
	wait_sem_rise_updown();
	StopTask(Shake_Arm);
	Turning_Arm_Func(0);

}
//
void Section_Out_Of_Src(int height,int rise_speed,int time, TTimers timer_x)
{
	Rise_UpDown_Func(rise_speed);
	ClearTimer(timer_x);
	StartTask(Shake_Arm);
	while(time1[timer_x]<=time)
	{
		if(SensorValue[Angle_Height]<=height)
			break;
		wait1Msec(10);
	}
	StopTask(Shake_Arm);
}
